﻿using ExamPlat.Models;
using ExamPlat.ViewModels;
using System.Collections.Generic;

namespace ExamPlat.Repositories
{
    interface IExamQuesItemRepository
    {
        /// <summary>
        /// 增加考题问题
        /// </summary>
        /// <param name="model">考题问题信息</param>
        /// <returns></returns>
        int AddExamQuesItem(ExamQuesItem model, List<ExamQuesItemOption> optionList);
        /// <summary>
        /// 修改考题问题
        /// </summary>
        /// <param name="model">考题问题信息</param>
        /// <returns></returns>
        int UpdateExamQuesItem(ExamQuesItem model, List<ExamQuesItemOption> optionList);
        /// <summary>
        /// 删除考题问题
        /// </summary>
        /// <param name="id">考题问题ID</param>
        /// <returns></returns>
        int DelExamQuesItem(int id);
        /// <summary>
        /// 根据考题问题ID查询考题信息
        /// </summary>
        /// <param name="id">考题问题ID</param>
        /// <returns></returns>
        ExamQuesItem GetExamQuesItemByID(int id);
        /// <summary>
        /// 根据条件查询考题信息
        /// </summary>
        /// <param name="examQuesID">考题ID</param>
        /// <param name="examQuesItemTitle">考题问题标题</param>
        /// <param name="examQuesItemType">考题问题类型</param>
        /// <returns></returns>
        IList<ViewExamQuesItem> GetExamQuesItemByCondition(int examQuesID, string examQuesItemTitle, int examQuesItemType);
    }
}
